package com.carlinfo.stu_ques.users.pojo;

import java.io.Serializable;
import java.util.Date;

import com.carlinfo.stu_ques.common.util.DateUtile;

/**
 * 属性:id,名字,段位,起始分数,结束分数,创建时间,结束时间
 * 
 * @author AcerMr
 *
 */
public class Grade implements Serializable
{

	private int id;
	private String name;
	private String grading;
	private double stNum;
	private double edNum;
	private Date creatDate;
	private Date endDate;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getGrading()
	{
		return grading;
	}

	public void setGrading(String grading)
	{
		this.grading = grading;
	}

	public double getStNum()
	{
		return stNum;
	}

	public void setStNum(double stNum)
	{
		this.stNum = stNum;
	}

	public double getEdNum()
	{
		return edNum;
	}

	public void setEdNum(double edNum)
	{
		this.edNum = edNum;
	}

	public Date getCreatDate()
	{
		return creatDate;
	}

	public void setCreatDate(Date creatDate)
	{
		this.creatDate = creatDate;
	}

	public Date getEndDate()
	{
		return endDate;
	}

	public void setEndDate(Date endDate)
	{
		this.endDate = endDate;
	}

	DateUtile dateutile = new DateUtile();

	@Override
	public String toString()
	{
		// 属性:id,名字,段位,起始分数,结束分数,创建时间,结束时间
		String result =  id + "\t" + grading + "\t" + stNum + "\t" + edNum
				+ "\t" + dateutile.dateTimeToStr(creatDate) + "\t\t\t" + dateutile.dateTimeToStr(endDate);
		return result;

	}
}
